package com.hopes.bizz.hazard.alarm.service;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hopes.bizz.hazard.alarm.dto.AlarmAnalysisRequest;
import com.hopes.bizz.hazard.alarm.dto.AlarmStatisticsRequest;
import com.hopes.bizz.hazard.alarm.vo.HazAlarmStatistics;
import com.hopes.bizz.hazard.om.dto.HazRtDataHisDTO;

import java.util.List;

/**
 * @author daijie
 * @version 1.0
 * @date 2023/11/20 19:14
 * @Description:
 */
public interface HazAlarmStatisticsService {

    /**
     * 断网报警数据统计
     * @param page
     * @param request
     * @return
     */
    List<HazAlarmStatistics>  getBrokenStatistics(Page page, AlarmStatisticsRequest request);

    /**
     * 超标报警数据统计
     * @param page
     * @param request
     * @return
     */
    List<HazAlarmStatistics>  getOverproofStatistics(Page page, AlarmStatisticsRequest request);

    /**
     * 查询超标报警统计分析
     * @param request
     * @return
     */
    JSONArray analysisOverproof(AlarmAnalysisRequest request);

    /**
     * 查询断网报警统计分析
     * @param request
     * @return
     */
    JSONArray analysisBroken(AlarmAnalysisRequest request);

    JSONObject monitorMonth(AlarmAnalysisRequest request);

    JSONObject monitorYear(AlarmAnalysisRequest request);

     JSONArray rtDataHis(HazRtDataHisDTO hazRtDataHisDTO);
}
